/**
 * Copyright (c) 2018 qar All rights reserved.
 *
 * https://www.qar.io
 *
 * 版权所有，侵权必究！
 */

package io.qar.feign;

import io.qar.commons.tools.constant.ServiceConstant;
import io.qar.commons.tools.utils.Result;
import io.qar.feign.fallback.FtpToFtpDataFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 字典接口
 *
 * @author Mark sunlightcs@gmail.com
 */
@FeignClient(name = ServiceConstant.qar_ADMIN_SERVER, contextId = "FtpToFtpDataFeignClient", fallbackFactory = FtpToFtpDataFeignClientFallbackFactory.class)
public interface FtpToFtpDataFeignClient {
    @GetMapping("sys/cfgftpsetting/ftp/upload/task/{cfgId}")
    Result<Boolean> ftpToFtpDataTask(@PathVariable("cfgId") long cfgId);
}